package ii.zjf.spring.comment;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

@Component
public class Comment1 {

    public void say(){

        System.out.println("comment 1 ~~~~~");

    }

    @PostConstruct
    public void init(){

        System.out.println("Comment1 init");

    }

    @PreDestroy
    public void destory(){
        System.out.println("Comment1 destory");
    }

}
